//
//  LocationManager.h
//  ImGuider
//
//  Created by llt on 2017/4/11.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface LocationManager : NSObject

@property (nonatomic, strong, readonly) CLLocation *currentLocation;

+ (instancetype)sharedManager;

- (void)startUpdatingLocation;

- (void)realLocation:(void (^)(CLLocation *location, NSError *error))block;

/**
 获取当前位置到目标位置的距离

 @param coordinate 目标位置
 @return 距离
 */
- (CLLocationDistance)distanceCoordinate:(CLLocationCoordinate2D)coordinate;

@end
